package com.crb.crm.manage.dao;

import com.crb.crm.manage.pojo.OpenOauth2Info;
import org.apache.ibatis.annotations.Param;

public interface OpenOauth2InfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OpenOauth2Info record);

    int insertSelective(OpenOauth2Info record);

    OpenOauth2Info selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OpenOauth2Info record);

    int updateByPrimaryKey(OpenOauth2Info record);

    OpenOauth2Info getOne(@Param("userId") Integer userId,@Param("channel")  String channel);

    OpenOauth2Info findByOpenId(@Param("openId")String openId,@Param("channel") String channel);
}